package com.sosee.cgfw.utils;

import android.os.Environment;

import com.sosee.cgfw.entity.User;
import com.sosee.cgfw.entity.ad.ADJson;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Thinkpad on 2016/1/25.
 */
public class Constans {
    //基础ip
    public static final String BASE_URL="http://123.56.205.69:9801/";
//    public static final String BASE_URL="http://192.168.10.248:9801/";
    //时尚资讯地址
    public static final String URL_NEWS=BASE_URL+"news";
    //获取活动日程网址   参数date=2015-10-30 loc=北京饭店
    public static final String URL_SCHEDULE=BASE_URL+"show";

    public static List<String> friendsId;

    //活动日程详情页 logo地址
//    public static final String URL_LOGO_BASE="http://123.56.205.69:9901/";
    public static final String URL_LOGO_BASE=BASE_URL;
    //收藏地址  http://192.168.1.248:9901/show?code=col&userID=1&showID=-1(显示所有搜藏)
    public static final String URL_SHOUCANG=BASE_URL+"show?code=col&userID=";
    //申请参加地址
    public static final String URL_APPLY=BASE_URL+"show?code=app&userID=";
    //品牌logo列表 地址
    public static final String URL_LOGO_LIST=BASE_URL+"brand";

    //sd卡根目录
    public static final String PATH_BASE= Environment.getExternalStorageDirectory().getAbsolutePath();

    public static final String PATH_DATE=Environment.getDataDirectory().getAbsolutePath();
    //合成子自拍照存放路径
    public static final String PIC_SHARE=PATH_BASE+"/pic_share";
    public static final String PIC_SHARE_DATA=PATH_DATE+"pic_share";
    //获取票夹 也是获取邀请函的url
    public static final String PIAO_URL=BASE_URL+"show?code=get&userID=";
    //接受 邀请url
    public static final String YAOQINGHAN_URL=BASE_URL+"show?code=acc&userID=1&showID=";
    //申请邀请函 url
    public static final String APPLY_URL=BASE_URL+"show?code=app&userID=1&showID=";
    //获取好友列表url
    public static final String FRIENDLIST_URL=BASE_URL+"user?fri&userID=";

    //转赠好友 urlshow?code=giv&userID=userID&showID=showID&touserID=userID  --------------------------------
    public static final String DONATIONFRIEND_URL=BASE_URL+"show?code=giv&userID=";
    //删除 邀请码
    public static final String DELEYAOQING_URL=BASE_URL+"show?code=del&userID=1&showID=";
    //登陆 user?log&u=username&p=password
    public static final String LOGIN_URL=BASE_URL+"user?log&u=";
    //获取验证码
    public static final String YANZHENG_URL=BASE_URL+"user?sms&userPhone=";
    //注册  user?reg&u=%@&p=%@&code=%@&inv=%@
    public static final String REGISTER_URL=BASE_URL+"user?reg&u=";
    //获取用户信息
    public static final String USER_INFO_URL=BASE_URL+"user?get&userID=";

    //重新设置密码
    public static final String FORGOT_PASS_URL=BASE_URL+"user?fgt&userPhone=";
    //用户id
    public static String userID;
//    public static String userID="1";//调试

    //用户信息 用于 用户登录成功后记录用户信息
    public static User user;
    //记录手势密码 sp文件名称
    public static final String GESTURENAME="gesture";
    //记录手势密码 变量名
    public static final String GESTURE="ges";
    //意见反馈接口
    public static final String FEEDBACK_URL=BASE_URL+"user?fee&userPhone=";

    public static final String REMIND="remind";
    //修改用户信息
    public static final String update_info_url=BASE_URL+"user?upt";

    public static final String DHUB=BASE_URL+"user?dhub";

    public static final String TA=BASE_URL+"user?tat";

    //http://192.168.1.248:9901/user?upt&userID=1&user_nickname=%27ABC12%27,user_sex=%27N%27

    //获取附近的人    Constans
    public static final String GETNEAR_URL=BASE_URL+"user?loc=2&userID=";
    //获取共同的人
    public static final String GETTOGETHER_URL=BASE_URL+"user?gff&userID=";
    //通讯录好友
    public static final String GETTEL_URL=BASE_URL+"user?cot";

    //调试通讯录好友
//    public static final String GETTEL_URL=BASE_URL+"user";

    //添加好友
    public static final String ADDFRIENDS_URL=BASE_URL+"user?add&userID=";
    //获取好友列表
    public static final String GETFRIENDSLIST_URL=BASE_URL+"user?fri&userID=";
    //获取token值
    public static final String GETTOKEN_URL=BASE_URL+"user?tok&userID=";
    //获取用户信息    user?get&userID=userID
    public static final String GETUSERINFO_URL1=BASE_URL+"user?get&userID=";
    //获取等待审核的好友列表
    public static final String GETAUTID_URL=BASE_URL+"user?wat&userID=";
    //设置备注信息   user?mrk&userID=*&friendsID=*&mark=*
    public static final String SETINGNAME_URL=BASE_URL+"user?mrk&userID=";
    //删除好友  user?del&userID=userID&friendsID=friendsID
    public static final String DELETEFRIENDS_URL=BASE_URL+"user?del&userID=";
    //电话号码获取好友信息。
    public static final String GETUSERPHONE_URL=BASE_URL+"user?srh&userPhone=";

    //接受 好友申请  user?acc=(-1,1)&userID=userID&friendsID=friendsID
    public static final String GETACCPT_URL=BASE_URL+"user?acc=1&userID=";
    //拒绝 好友申请  user?acc=(-1,1)&userID=userID&friendsID=friendsID
    public static final String DOS_URL=BASE_URL+"user?acc=-1&userID=14&friendsID=1";

    public static final String AVATAR_URL=BASE_URL+"user?userpicset";

    //广告接口
    public static final String AD_URL=BASE_URL+"advs?top&3";
    //启动页接口
    public static final String AD_SPLASH_URL=BASE_URL+"advs?front";

    //新闻接口
    public static final String NEWS_URL=BASE_URL+"advs?news";

    public static List<ADJson> aList=new ArrayList<ADJson>();







    //记录路劲规划状态
    public static final int JIACHE_MONE=0;//驾车 费用优先
    public static final int JIACHE_FAST=1;//驾车 高速优先
    public static final int JIACHE_YONGDU=2;//驾车 躲避拥堵

    public static final int BUXING=3;//步行

    public static final String ALARM="alarm";//记录提醒状态


    public static String UPDATEURL=BASE_URL+"user?update_android";






    //跳转至跟人信息界面
    public static final int PERSONALINFO=1;
    //跳转至时尚好友界面 Frend
    public static final int FREND=2;
    //跳转至我的票夹界面
    public static final int EPASS=3;
    //跳转到活动日程详情界面
    public static final int DETAIL=4;
    //跳转至智能助理界面
    public static final int ASSISTANT=5;

    //跳转至智能助理界面
    public static String realName;
    //跳转至智能助理界面
    public static  String company;
    //跳转至智能助理界面
    public static  String duty;

    //向loginActivity传递的数据
    public static final String flag="flag";
    public static String REMIND_TIME="time";
}
